﻿using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class CourseConfiguration : EntityConfiguration<Course>
    {
        public CourseConfiguration()
        {
            Property(c => c.CourseID).IsIdentity();
            MapHierarchy(
               c => new
               {
                   c.CourseID,
                   c.Name,
               }
               ).ToTable("Course");

        }
    }
}
